package ru.myrtle.jst.ast;

/**
 * Define a Text Element in the AST.
 */
public class Text extends Element {

    private String text;

    public Text(Unit unit, int line, int column, String text) {
        super(
                unit, line, column
        );
        this.text = text;
    }

    public String getText() {
        return text;
    }

    @Override
    public <ContextType> void accept(Visitor<ContextType> visitor, ContextType context) {
        visitor.visit(this, context);
    }
}
